package File;

import java.io.File;
import java.io.IOException;

public class Demo9 {
    public static void main(String[] args) throws IOException {
        File file = new File("test.txt");

        File file1 = new File("test1.txt");
//        System.out.println(file.createNewFile());
        System.out.println(file.renameTo(file1));
    }
}
